.switch__wrap {
  position: relative;
  display: inline-flex;
  width: auto;
  margin: 0 auto;
  height: 28px;
  background-color: #e3e4e9;
  border-radius: 4px;
  padding: 0 2px;
  user-select: none;
  cursor: pointer;
  .left,
  .right {
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    font-size: 13px;
  }
  .side__button {
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: calc(100% - 4px);
    background-color: #fff;
    transition: left .28s, background-color .28s;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    .loading {
      margin-right: 4px;
    }
  }

  // 打开状态
  .side__button.is-open {
    left: calc(50% - 2px);
  }

  // 折叠状态
  &.is-collapsed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    .t-icon {
      font-size: 18px!important;
    }
  }
}


// 夜间模式
html[theme-mode=dark] {
  .switch__wrap {
    background-color: #383838;
    .side__button {
      background-color: #1F1F1F;
    }
    .t-icon {
      margin-right: 3px;
      font-size: 14px;
    }
  }
}